package com.cac.demo.newCode.cemopsim.controller;

import com.alibaba.fastjson.JSONObject;
import com.cac.demo.newCode.cemopsim.service.CemopSimService;
import com.cac.demo.util.adapter.ResponseMsg;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zty
 * @description
 * @date 2024/11/1
 */
@Slf4j
@RestController
@RequestMapping("/cemopSimController")
@Api(tags = "模拟CEMOP系统下发xml文件")
public class CemopSimController {

    @Resource
    private CemopSimService cemopSimService;

    @PostMapping("/resSecondMatch")
    @ApiOperation(value = "模拟CEMOP系统下发二次配套物料至101库存")
    public ResponseMsg<Object> resSecondMatch() {
        return cemopSimService.resSecondMatch();
    }

    /**
     * aoMonthPlan
     */
    @PostMapping("/aoMonthPlan")
    @ApiOperation(value = "模拟CEMOP系统下发月计划")
    public ResponseMsg<Object> aoMonthPlan() {
        return cemopSimService.aoMonthPlan();
    }
}
